Okay I thought I had this thing licked but a new wrinkle has come up. In my original request I outlined that I was trying to calculate a billing issue based upon the number of hours someone was housed.
A5= 1/1/2009 23:50 (Time Arrived)
C5= 1/3/2009 12:10 (Time Left)
F5 = Total Hours
(Formula behind F5) =(+C5-A5)*24*60/60
F5 is formatted as a general number
A5 and C5 are formatted as custom m/d/yyyy h:mm
In the example above F5 is 36. So now the folks using this spreadsheet tell me that they need it to display the hours AND minutes - because it impacts billing.
H5 currently gives the billing amount based upon this formula
=IF(F5<=8,55,IF(F5<=24,120,185+(65*INT((F5-24)/24))))
So if they are here for exactly 48 hrs it is $185 but if they are here for 48 hours and 1 minute it goes to $250.
Bookmarks