Fixed bug in the weekly and monthly installments. Added a debugging message. Updated comments.
Fixed calculation bug with the yearly installment.
Cleaned up 1st and 15th code. Deleted redundant code.
Converted strtotime to use mktime, so I could use the start input. Fixed a few use cases where the installment number was incorrect because the end month equalled the start month.