Skip to content

Instantly share code, notes, and snippets.

@caffeine-potent
Last active April 25, 2018 16:33
Show Gist options
  • Save caffeine-potent/3db1c5e2a114aa35060f706b4831a760 to your computer and use it in GitHub Desktop.
Save caffeine-potent/3db1c5e2a114aa35060f706b4831a760 to your computer and use it in GitHub Desktop.
Functions for expense report calculations - https://repl.it/@caffeine_potent/ContentAccomplishedHashmaps
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)
@caffeine-potent
Copy link
Author

repl the math for expense report.s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment