function calculateServiceTime(squareFootage) { const baseTime = 1; // 1 hour for the first 1500 sf const additionalTimePer500sf = 0.5; // 30 minutes for each additional 500 sf if (squareFootage <= 1500) { return baseTime; } else { const additionalTime = Math.ceil((squareFootage - 1500) / 500) * additionalTimePer500sf; return baseTime + additionalTime; } }
top of page
bottom of page