Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- weeks_in_year = 52
- days_worked_per_week = 5
- current_salery = prompt("Current Salary:") - "" // - not my salery, just generic number for testing
- hours_worked_per_day = 8
- company_holidays = prompt("Company holidays per year: ")-""
- vacation_days = prompt("pto days per year: ")-""
- healthcare_monthly_costs = prompt("healthcare costs per month increase estimate")
- medicare_ss_tax = 0.062 + .0145 //ss and medicare
- salery_and_benefits = current_salery + (healthcare_monthly_costs*12)
- comapany_MCSS_tax_cost = (salery_and_benefits * medicare_ss_tax)
- days_actually_worked = ((days_worked_per_week * weeks_in_year) - vacation_days) - company_holidays
- salery_and_benefits_MCSS = salery_and_benefits + comapany_MCSS_tax_cost
- cost_per_hour = (salery_and_benefits_MCSS/days_actually_worked)/hours_worked_per_day
- true_salery = cost_per_hour * hours_worked_per_day * days_worked_per_week * weeks_in_year
- alert("With a current salary of $"+current_salery+" your 1099 should be: $"+true_salery+" per year.\nMeaning that your hourly should be: $"+cost_per_hour)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement