Move calculate_installments to Transaction class.