create Transaction#calculateInstallments method