SIP Investment Calculator in JavaScript