# What is the profit per hour on this side hustle?

Profit is income minus expenses. Profit per hour is profit divided by hours. Monthly totals add the income, expense and hour rows in that month.

Page: https://straightgate.pages.dev/t/side-hustle-profit-per-hour/

## Formula and worked examples

### Sample January and February 2027 orders and costs

Inputs: rows = [['2027-01-08', 'Income', 220, 6], ['2027-01-12', 'Expense', 35, 0], ['2027-01-20', 'Income', 180, 5], ['2027-02-03', 'Income', 300, 8], ['2027-02-05', 'Expense', 60, 0]]

Results: year_income = 700.0, year_expenses = 95.0, year_profit = 605.0, year_hours = 19, year_profit_per_hour = 31.842105263157894, months = [{'month': 1, 'income': 400.0, 'expenses': 35.0, 'profit': 365.0, 'hours': 11, 'profit_per_hour': 33.18181818181818}, {'month': 2, 'income': 300.0, 'expenses': 60.0, 'profit': 240.0, 'hours': 8, 'profit_per_hour': 30.0}]

### Profit with zero hours leaves profit per hour blank

Inputs: rows = [['2027-03-01', 'Income', 100, 0]]

Results: year_income = 100.0, year_expenses = 0.0, year_profit = 100.0, year_hours = 0, year_profit_per_hour = None, months = [{'month': 3, 'income': 100.0, 'expenses': 0.0, 'profit': 100.0, 'hours': 0, 'profit_per_hour': None}]

### A month can show a loss per hour

Inputs: rows = [['2027-04-01', 'Expense', 40, 2], ['2027-04-02', 'Income', 10, 0]]

Results: year_income = 10.0, year_expenses = 40.0, year_profit = -30.0, year_hours = 2, year_profit_per_hour = -15.0, months = [{'month': 4, 'income': 10.0, 'expenses': 40.0, 'profit': -30.0, 'hours': 2, 'profit_per_hour': -15.0}]

## Related spreadsheets

- [Side Hustle Profit Tracker Spreadsheet – Income, Expenses, Hours and Profit per Hour by Month (Excel)](https://straightgate.pages.dev/p/aylix.md) — $5. Buy: https://straightgate.gumroad.com/l/aylix?wanted=true
