Jump to content

Upgrade Price Calculations


mikelegg

Recommended Posts

I didn't want to report this as a bug in case I've configured something incorrectly, but I'm finding that the WHMCS upgrade calculations are consistently wrong.

 

Here's an example of one I did today

 

Today's Date: 11th February 2011

Due Date: 11th August 2011

Days Left on Current Cycle: 182

 

Old Plan value: $49.00

New Plan value: $199.00

 

This is how the calculation is done according to http://wiki.whmcs.com/Automated_Upgrades_and_Downgrades

 

Credit on unused portion of old plan - ($49.00 / 365 days) x 182 days = $24.43

Debit for new plan - ($199.00 / 365 days) x 182 days = $99.22

Total Due today: $99.22 - $24.43 = $74.79

 

I agree that is what the correct amount should be, but WHMCS actually came up with a figure of $96.29 and I don't know why.

 

Has anyone else experienced this before?

Link to comment
Share on other sites

That looks like it took this:

Total Due today: $99.22 - $24.43

and had the second value with the wrong decimal place, perhaps.

99.22

-2.44

$96.78

 

I like the way you're thinking, but it doesn't quite equal the $96.29 figure that WHMCS came up with.

 

I'll try a few similar scenarios and see what I can come up with.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated