Changes to calculateAmount function

Added down payment calculation