Elementor #13785

				
					<script>
function calculateIncome() {
  var hourlyRate = parseFloat(document.getElementById("hourly-rate").value);
  var weeklyHours = parseFloat(document.getElementById("weekly-hours").value);
  var commissionPercent = parseFloat(document.getElementById("commission-percent").value);

  var hourlyIncome = hourlyRate;
  var actualHourlyIncome = hourlyRate * (1 - commissionPercent / 100);
  var dailyIncome = actualHourlyIncome * weeklyHours / 7;
  var weeklyIncome = actualHourlyIncome * weeklyHours;
  var monthlyIncome = dailyIncome * 30;
  var yearlyIncome = monthlyIncome * 12;

  document.getElementById("hourly-income").innerHTML = "$" + hourlyRate.toFixed(2);
  document.getElementById("actual-hourly-income").innerHTML = "$" + actualHourlyIncome.toFixed(2);
  document.getElementById("daily-income").innerHTML = "$" + dailyIncome.toFixed(2);
  document.getElementById("weekly-income").innerHTML = "$" + weeklyIncome.toFixed(2);
  document.getElementById("monthly-income").innerHTML = "$" + monthlyIncome.toFixed(2);
  document.getElementById("yearly-income").innerHTML = "$" + yearlyIncome.toFixed(2);
	
 
}
document.querySelector('button').addEventListener('click', calculateIncome);

</script>
				
			

Teacher Income Calculator




Hourly Income:

Actual Hourly Income:

Daily Income:

Weekly Income:

Monthly Income:

Yearly Income: