updated payment calculator