Billing Calculator

dpayne

New Member
Joined
Aug 12, 2008
Messages
8
I've given myself a headache on how to do this. I'm working on a 4-week billing calculator. I rent equipment on a day,week & month rate system. For example: Equipment 1 rents at $30 Day, $90 Week, & $270 a month. If you keep Equipment 1 for 4 days the calculator computes 4 days at a total of $120. The way a 4-week cycle works is the customer will receive the cheaper rate once the daily rate meets or exceeds the weekly rate. So instead of $120 for 4 days, the calculator tells me to bill him for 1 week at $90 instead and the customer essentially will get the following 3 days at no extra charge until the cycle starts over. As the cycle continues, the same rules apply for the monthly rate in relation to the weekly rate & daily rate combined. Once the weekly + daily rates add up to equal or more than the monthly, then the monthly rate is used and that's what the customer pays. What I'm trying to do is make a calculator that I input the rates and the rental period and the spread sheet will tell me (based on those rules) how many days, weeks and/or months the customer needs to pay and how much his total dollar amount will be. If someone has any idea how to do this (because I'm no programmer) the help would be greatly appreciated! danielfpayne@yahoo.com
 
I have given a sheet for equipment 1 ony . see the formula in F2 which is copied down.
similar caclualtion sheets have to be prepared for other equipment. NOTE THE DOLLAR SIGNS AT THE APPROPIRATE PLACES ).
Book1
ABCDEF
1equipemnt1datyrateweeklyratemonthlhlyrateno.ofdaysrentedbillamount
2renting13090270490
3renting210270
4renting3260
Sheet1
 
Upvote 0
Welcome to the Board!

If I've understood you correctly how about something like:

Excel Workbook
ABCDEFGHI
1ResultsLookup Table
2ProductHiredReturnedCostProductDailyWeeklyMonthly
3A10-Aug13-Aug90.00A3090270
4A10-Aug19-Aug180.00B40180650
5A10-Aug11-Aug60.00C50220800
6B10-Jul10-Aug690.00
7
8
Sheet1


Where:

-- F:I is your LOOKUP table of products and rates
-- A:C is where you would enter hire info
-- D is where cost is calculated based on dates and product hired.

Notes:

-- I have deemed start of hire and end of hire as being inclusive in the rates (ie hired 10th returned 11th equates to 2 days hire
-- I have deemed a month as being a calendar month as opposed to 28 days

If this approach is one you want to follow and either of the above is incorrect let us know.
 
Last edited:
Upvote 0
Thanks for both of your help!

lasw10, your formula was closer to what I'm looking for. Now I'm trying to see why it does not stick to the rate schedule. For example 8/1/08 - 8/31/08 rental period. On days 8-22 thru 8-27 it adds daily rates on top of the monthly then goes back to the monthly rate on 8-28 then on 8-29 & 8-30 it adds more daily rates. Then on 8-31 it goes back to the monthly rate. Any reason why this might happen?

Also, is there any way to specify this as a 28 day month? This simplifies the billing scedule.
 
Upvote 0
Re: your August scenario -- not sure I follow, if I set B3 = 1st Aug and C3 = 31 Aug (Prod A) I get 270 (the monthly charge)
 
Upvote 0
On each of the dates listed in my previous post it will do that. These questions are definately out of my knowledge base, that's why ask you folks (the pros). I greatly appreciate all your assistance!
 
Upvote 0
Below is a quick fix re: > month rate (does not resolve 28 days) and relates to D3 (can be copied down)

Code:
=MIN(DATEDIF($B3-1,$C3,"m")*VLOOKUP($A3,$F$2:$I$5,4,0)+MIN(VLOOKUP($A3,$F$2:$I$5,4,0),(INT(DATEDIF($B3-1,$C3,"md")/7))*VLOOKUP($A3,$F$2:$I$5,3,0))+MIN(VLOOKUP($A3,$F$2:$I$5,3,0),(MOD(DATEDIF($B3-1,$C3,"md"),7)*VLOOKUP($A3,$F$2:$I$5,2,0))),(DATEDIF($B3,$C3,"m")+1)*VLOOKUP($A3,$F$2:$I$5,4,0))

I am still sure this is not the best solution and no doubt won't resolve all issues so I will look into in more detail and post back.
 
Last edited:
Upvote 0
Does this work for you ?

Again this is for D3 (can be copied down)

Code:
=MIN((DATEDIF($B3-1,$C3,"m")+1)*VLOOKUP($A3,$F$2:$I$5,4,0),(INT(DATEDIF($B3-1,$C3,"d")/28)*VLOOKUP($A3,$F$2:$I$5,4,0))+MIN(VLOOKUP($A3,$F$2:$I$5,4,0),INT(MOD(DATEDIF($B3-1,$C3,"d"),28)/7)*VLOOKUP($A3,$F$2:$I$5,3,0))+MIN(VLOOKUP($A3,$F$2:$I$5,3,0),MOD(DATEDIF($B3-1,$C3,"d"),7)*VLOOKUP($A3,$F$2:$I$5,2,0)))

If not post back with some dates that I can test to replicate.
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top