mikelegg Posted February 11, 2011 Share Posted February 11, 2011 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? 0 Quote Link to comment Share on other sites More sharing options...
bear Posted February 11, 2011 Share Posted February 11, 2011 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 0 Quote Link to comment Share on other sites More sharing options...
mikelegg Posted February 11, 2011 Author Share Posted February 11, 2011 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. 0 Quote Link to comment Share on other sites More sharing options...
mikelegg Posted February 11, 2011 Author Share Posted February 11, 2011 I worked it out - it was my fault - I wasn't selecting Annual Billing Cycle so it was calculating using the monthly cycle which screwed up the results . When I select the Annual Billing Cycle it works perfectly. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.