uruba / FinanCalc

:moneybag: A lightweight, simple and easy PHP library for calculating annuities (e.g., mortgages) and other financial instruments according to various input data
The Unlicense
30 stars 6 forks source link

Added Rounded #s for Debt Payments #6

Closed alloylab closed 4 months ago

alloylab commented 8 years ago

added round_up & round_down to mathfuncs, added debtSingleRepayment_Rounded & debtRepayments_Rounded to DebtAmortizator… added beginning and ending balance to test round math worked out. Decided to keep since I think it would be nice have in there. Rounding logic was decided on when testing against a couple official amortization schedules

uruba commented 8 years ago

Awesome, thanks for your contribution. I'd however like to discuss some points with you before merging this, so that the code is consistent:

You definitely don't have to make any changes if you don't want to, I can do this instead as an additional commit. Also discussion is welcome if you have any remarks on this.

alloylab commented 8 years ago

Sorry for the delay been swamped... i think i addressed most your concerns here... if I missed anything please let me know I will fix them

uruba commented 8 years ago

Hello, sorry for my late reply, thanks for you contribution, but I see that the tests are failing (it seems like something in the class DebtAmortizator, from the looks of the output on Travis). Please have a look at it if you can.