/Calculator

Cash & Calories calculator

Primary LanguagePython

Cash & Calories calculator

A calorie / finance calculator that helps you keep track of the balance of your funds or calories before consumption.

To get started with the calculator, create a class object with a limit of funds / calories:

  • CashCalculator(Calculator) - for finance calculator
  • CaloriesCalculator(Calculator) - for calorie calculator

Common functionality of calculators:

  • Add a new record of spending or consuming calories - add_record()
  • Calculate the consumption of funds / calories for today - get_today_stats()
  • Calculate the consumption of funds / calories for the last week - get_week_stats()

Finance calculator can:

  • get_today_cash_remained(currency) - Determines the balance and accepts the argument of one of the three available currencies:
    • Euro - 'eur'
    • Dollars - 'usd'
    • Ruble - 'rub'

Calorie calculator can:

  • Calculate how many calories you can still consume today - get_calories_remained()