Calc Prorated Cost based on Specific Days in a Given Month & Year Range

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hello Everyone,

I beg your assistance.

I posted this last year, and reread this recently. I've come to
realize how crappily I described this, and thought I'd give it another
go. I have the need to take 2 dates, possibly in different years, and
calculate Cost totals between them. The tricky part is that the price
is annual, but we prorate it to only the days used. We also need to do
the calculation on a daily level as the price for service is Monthly,
regardless of how many days are in a month. We do however calculate it
down to the day. Confused yet? Let me give an example.


This is all based on the annual cost, which will change. I may
implement it using monthly cost, but all the numbers play off of each
other.

Annual Cost: $1200.00 (which is Monthly Price = $1200.00/12 Months =
$100)
Days Service was used: 11/02/2004 - 03/16/06
Price per Day: [28 Day Month]= $3.57/day, [29 Day Month]=$3.45/day,
[30 Day Month]=$3.33/day, [31 Day Month]=$3.23/day

Ok, so they only have to pay for the days that they used.

Now, to calculate the daily price, I need to know how many days are in
November of '04, and March of '06. All the rest we can use static
monthly pricing. So, let's get back to basics:

Thirty days hath September, April, June, and November; All the rest
have thirty-one Excepting February alone: Which hath but twenty-eight,
in fine, Till Leap Year gives it twenty-nine.

November '04 = 30 days. So the price per Day for November is $3.33/
day. Taking into account that the service started on November 2nd,
that would mean 29 days of service were used. Final November calc
would be 29 * $3.33 = $96.57

March 06 = 31 days. So the price per Day for March is $3.23/day.
Taking into account that the service ended on March 16th, that would
mean 16 days of service were used. Final March calc would be 16 *
$3.23 = $51.68

December '04, the 12 months of 2005, and January '06, and February '06
= 15 Months, which is $1500.

Total Daily prorated bill for this customer would be: $1648.25.

All the times I've attempted this, it seems to work sometimes, but
usually not in the same month. Other things that I'm concerned about
is creating a formula that will evaluate how many days are in the
specific month and
year. I'm pretty good with subtracting dates, but I don't know how to
tell excel to do that with the first and last. I'm struggling with how
to separate full months from partial ones. I also need this to account
for leap years. The leap year, .. well, the days in the month only
matter if the starting date or ending date fall in the middle of the
month.

I hope this better explains the issue, so that by asking the right
question, I can hope to receive the right answer. :) I would
appreciate any guidance, or help that anyone can provide me.

Please and Thank You :),
-John

.



Relevant Pages

  • Re: courier
    ... >>> I use parcelforce www.parcelforce.com and UPS www.ups.com City link ... >>> price also depends on how much you intend to use them. ... How much would that cost. ... > This would also depend on which courier and if you had an account, ...
    (uk.people.consumers.ebay)
  • Re: RMMGA CD IV - SOME suggestions
    ... >Agree to produce four CDs over a one-year period. ... >and a small committee in charge of an account. ... >With 1000 CDs produced, at a unit price of under $1 per CD, a fair ... >and halve the cost to 50 cents. ...
    (rec.music.makers.guitar.acoustic)
  • RMMGA CD IV - SOME suggestions
    ... First of all, I'm fully behind the idea of new CDs and would contribute some funding by ordering a quantity to resell, making them available from my troubadour.uk.com website. ... By the time CD2 is produced, additional sales of CD1 would be topping up the account. ... These CDs could be posted for the price of a minimum airmail stamp in bubblepack envelopes, and my experience is that they survive, unlike jewel cases. ... This is not some cheap pressing operation and if these prices can apply in expensive Britain, it may be that someone else can get a similar deal and halve the cost to 50 cents. ...
    (rec.music.makers.guitar.acoustic)
  • Caster levels, schools and prices for artifacts
    ... Craft Wondrous Item, ... Price 107824 gp. ... for divine spellcasting ability is offset by the cost of damaging ...
    (rec.games.frp.dnd)
  • Re: Challenge-Response Email Service With Email Aliases?
    ... What Internet email badly needs is rational economics. ... Failure to let price ... So make the cost 1/10th of one cent per email. ... can send 1 BILLION pieces of email and pay nothing. ...
    (comp.mail.misc)