Menu

The freelance day rate formula, as code: from income goal to hourly and day rate
πŸ“°

The freelance day rate formula, as code: from income goal to hourly and day rate

DEV Community: careerΒ·Sebastian BardachΒ·4 days ago
#ycJ1iq3W
#devtocareer#devto#dev#billable_share#revenue_needed
Reading 0:00
15s threshold

Most freelancers set their rate by looking at what others charge. That tells you the market, not whether the rate pays your bills. The calculation is short enough to write as a function.

def freelance_rate ( income_goal , tax_set_aside , business_costs , weeks_off , hours_per_week , billable_share , days_per_week = 5 ) : revenue_needed = income_goal / ( 1 - tax_set_aside ) + business_costs working_weeks = 52 - weeks_off billable_hours = working_weeks * hours_per_week * billable_share billable_days = working_weeks * days_per_week * billable_share return { "revenue_needed" : round ( revenue_needed , 2 ) , "hourly" : round ( revenue_needed / billable_hours , 2 ) , "day_rate" : round ( revenue_needed / billable_days , 2 ) , }

print ( freelance_rate ( 60_000 , 0.25 , 6_000 , weeks_off = 6 , hours_per_week = 40 , billable_share = 0.60 ) ) # {'revenue_needed': 86000.0, 'hourly': 77.9, 'day_rate': 623.19}

Enter fullscreen mode

Exit fullscreen mode

Why each term is there

income_goal / (1 - tax_set_aside) β€” the…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.