Create decline_calc.js

Decline calculator javascript