calculate monthly payment for a investment