Menu

A Python Script That Answers 'Is Cloud Computing Worth It' Better Than I Can
πŸ“°

A Python Script That Answers 'Is Cloud Computing Worth It' Better Than I Can

DEV Community: cloudΒ·Sherdil IT AcademyΒ·2 days ago
#pZDNGs1m
#devtocloud#devto#dev#salary#opportunity_cost_per_month
Reading 0:00
15s threshold

"Is cloud computing worth it" is a question with a personal answer, not a universal one, and most articles (including ones on this exact blog) answer it with someone else's numbers. Here's a short script that answers it with yours. Drop in your own training cost, expected salary bump, and current pay, and it tells you your actual breakeven.

The calculator

def cloud_worth_it ( training_cost , current_monthly_salary , expected_monthly_salary , months_to_study , opportunity_cost_per_month = 0 ) : """ training_cost: total PKR spent on certification/training current_monthly_salary: what you earn now expected_monthly_salary: what you expect to earn after certifying months_to_study: how long you'll spend studying (affects opportunity cost) opportunity_cost_per_month: income you'll forgo per month while studying (0 if you study alongside your current job) """ monthly_gain = expected_monthly_salary - current_monthly_salary total_opportunity_cost = opportunity_cost_per_month * months_to_study total_investment =…

Continue reading β€” create a free account

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