How to calculate an hourly rate for freelance or consulting work — the formula, how to account for taxes and non-billable time, worked examples, and when to use hourly vs project pricing.