Skip to content

Instantly share code, notes, and snippets.

@Joshuaek
Created March 4, 2020 21:49
Show Gist options
  • Save Joshuaek/4d7411d929a019d843caa7fa4fb5dbf2 to your computer and use it in GitHub Desktop.
Save Joshuaek/4d7411d929a019d843caa7fa4fb5dbf2 to your computer and use it in GitHub Desktop.
def project(self, start_month, contract_frequency, payment_frequency, number_of_contracts, value, term, name, increase_period=1, increase_percentage=0):
for m in range(start_month, self.number_of_months - start_month, contract_frequency):
c = contract(m, payment_frequency, value, term, name + str(m), increase_period, increase_percentage)
self.add_contract(c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment