Last active
April 25, 2018 16:33
-
-
Save caffeine-potent/3db1c5e2a114aa35060f706b4831a760 to your computer and use it in GitHub Desktop.
Functions for expense report calculations - https://repl.it/@caffeine_potent/ContentAccomplishedHashmaps
This file contains 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
def calculate_taxed_ammount( spent:float, tax_rate:float): | |
cost = spent / (1 + tax_rate) | |
taxed = spent - cost | |
print("Spent: {}\nCost: {}\nTaxed: {}".format(spent, cost, taxed)) | |
calculate_taxed_ammount( spent = 171.376666667, tax_rate = .10) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
repl the math for expense report.s