February 12, 200421 yr Hello, My problem is, I have 2 time fields, "Begin Job" and "End Job", I also have a number field "cost" I want to calculate (End Job - Begin Job) and * (cost)... But I don't know how to calculate number and time field?? I need help!!! Thanks! Bruno
February 12, 200421 yr Time is stored as the number of seconds past midnight. So, you can simply subtract one time from the other to get a number of seconds. To convert to hours, divide by 3600. (End Job - Begin Job) /3600 * Cost Assuming cost is $/hour If the job starts on one day and ends on another then you need to account for that: ((End Job Day - Begin Job Day)*24 + (End Job - Begin Job) /3600) * Cost
Create an account or sign in to comment