Created
July 26, 2018 17:22
-
-
Save yangacer/1770db6bfae13e13109414433a111446 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
def main(): | |
years_remain = int(raw_input('Years remain: ')) | |
rental_price = int(raw_input('Rental price (month): ')) | |
construction_value = (rental_price * 12) / (1.0 / years_remain) | |
print 'Construction value: {:,}'.format(construction_value) | |
land_quota = float(raw_input('Land quota (m^2): ')) | |
land_announced_value = int(raw_input('Land anno. valuation (/m^2): ')) | |
land_value = (land_announced_value / 0.9) * land_quota | |
print 'Land value: {:,}'.format(land_value) | |
total_value = construction_value + land_value | |
print 'Total value: {:,} ({:,}w)'.format(total_value, total_value / 10000) | |
pass | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment