Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

List calculation

Status
Not open for further replies.

slilley

Technical User
Jan 18, 2007
3
GB
I'm using a sharepoint list to try to calculate the cost of bookings made for sports and other facilities, which are entered by start and end times.

A calculation field in the list, uses the formula below to calculate the cost of the booking in £.

=(End-Begin)*24*[Hourly Cost]

This works fine for 'one off' bookings, but if a booking with a recurrence is created, problems arise, as the cost is calculated as the total number of hours between the beginning of the first and end of thelast session in the
recurrence.

for example, a 10 weekly booking of two hours, rather than being calculated as 20 hours, works out as eg. 1500 hours as this is the total amount of time between the start time and the end time!

Please suggest any ways I could get around this problem.

thanks,
Simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top