Edit
Animation
Options

A Guide to HubSpot Service Hub

Customer Service Software for Businesses

Hero Circle -  Service Pillar Page

Tray.ai Pricing Calculator









`; document.body.innerHTML = appHTML; // JavaScript for the calculations document.getElementById("pricing-form").addEventListener("submit", function (event) { event.preventDefault(); // Collect inputs const name = document.getElementById("name").value; const company = document.getElementById("company").value; const email = document.getElementById("email").value; const appConnections = parseInt(document.getElementById("app-connections").value, 10); const steps = parseInt(document.getElementById("steps").value, 10); const runsPerDay = parseInt(document.getElementById("runs-per-day").value, 10); // Calculate task count const tasksPerRun = appConnections * 2 + steps; const monthlyTasks = tasksPerRun * runsPerDay * 30; // Determine pricing tier let platformFee = 0; let additionalFee = 0; let implementationFee = 0; if (monthlyTasks <= 1000) { platformFee = 99; additionalFee = Math.ceil((monthlyTasks - 1000) / 100) * 10; implementationFee = 2500; } else if (monthlyTasks <= 3000) { platformFee = 250; additionalFee = Math.ceil((monthlyTasks - 1000) / 1000) * 100; implementationFee = 5500; } else { platformFee = 1250; additionalFee = Math.ceil((monthlyTasks - 10000) / 1000) * 75; implementationFee = 5500 + appConnections * 500; } const totalMonthlyFee = platformFee + additionalFee; // Display results const resultDiv = document.getElementById("pricing-result"); resultDiv.innerHTML = `

Pricing Summary

Name: ${name}

Company: ${company}

Email: ${email}

Monthly Tasks: ${monthlyTasks}

Platform Fee: ${platformFee.toFixed(2)}

Additional Fee: ${additionalFee.toFixed(2)}

Total Monthly Fee: ${totalMonthlyFee.toFixed(2)}

Implementation Fee: ${implementationFee.toFixed(2)}

`; });

Talk with a Service Hub Expert