Field Trip Transportation Cost Calculator
Untitled Web App
AI
Get This App On Your Website
2. Paste the code into your website.
3. Resize the iframe to fit your website.
Untitled Web App
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript"> window.addEventListener('error', function(event) { var message = JSON.parse(JSON.stringify(event.message)); var source = event.filename; var lineno = event.lineno; var colno = event.colno; var error = event.error; window.parent.postMessage({ type: 'iframeError', details: { message: message, source: source, lineno: lineno, colno: colno, error: error ? error.stack : '' } }, '*'); }); window.addEventListener('unhandledrejection', function(event) { window.parent.postMessage({ type: 'iframePromiseRejection', details: { reason: event.reason } }, '*'); }); </script>
<title>Field Trip Transportation Cost Calculator</title>
<link rel="canonical" href="https://calculator.tools/prompt/1930/">
<meta charset="utf-8">
</head>
<body>
<h1>Field Trip Transportation Cost Calculator</h1>
<form id="calculator">
<h2>Trip Information</h2>
<label for="depart">Depart School Time:</label>
<input type="time" id="depart" name="depart">
<label for="arrive">Arrive at School Time:</label>
<input type="time" id="arrive" name="arrive">
<label for="location">Location of Trip:</label>
<select id="location" name="location">
<option value="Long Island">Long Island</option>
<option value="NYC/Off Long Island">NYC/Off Long Island</option>
</select>
<label for="passenger">Passenger Count:</label>
<input type="number" id="passenger" name="passenger">
<label for="wheelchair">Wheelchair Van Required:</label>
<select id="wheelchair" name="wheelchair">
<option value="YES">YES</option>
<option value="NO">NO</option>
</select>
<label for="vehicles">Number of Vehicles:</label>
<input type="number" id="vehicles" name="vehicles">
<label for="overrideVehicles">Override Number of Vehicles:</label>
<input type="number" id="overrideVehicles" name="overrideVehicles">
<h2>Hours door to door</h2>
<p id="hours"></p>
<h2>Minimum Hours Billed</h2>
<p id="minHours"></p>
<h2>Trip Cost</h2>
<p id="roundTrip"></p>
<p id="dropPick"></p>
<p id="oneWay"></p>
<input type="submit" value="Calculate">
</form>
<script>
document.getElementById('calculator').addEventListener('submit', function(event) {
event.preventDefault();
var depart = document.getElementById('depart').value;
var arrive = document.getElementById('arrive').value;
var location = document.getElementById('location').value;
var passenger = document.getElementById('passenger').value;
var wheelchair = document.getElementById('wheelchair').value;
var vehicles = document.getElementById('vehicles').value;
var overrideVehicles = document.getElementById('overrideVehicles').value;
if (overrideVehicles !== '') {
vehicles = overrideVehicles;
} else if (wheelchair === 'YES') {
vehicles = 1 + Math.ceil((passenger - 17) / 44);
} else {
vehicles = Math.ceil(passenger / 44);
}
var hours = (new Date('1970-01-01T' + arrive) - new Date('1970-01-01T' + depart)) / 36e5;
document.getElementById('hours').textContent = 'Hours door to door: ' + hours;
var minHours = location === 'Long Island' ? 3 : 7;
document.getElementById('minHours').textContent = 'Minimum Hours Billed: ' + minHours;
var oneWay = vehicles * 63.23 * Math.ceil(minHours / 0.5);
document.getElementById('oneWay').textContent = 'One Way Drop Off: $' + oneWay.toFixed(2);
var dropPick = vehicles * 63.23 * Math.ceil(minHours / 0.5) * 2;
document.getElementById('dropPick').textContent = 'Drop / Pick: $' + dropPick.toFixed(2);
var roundTrip = vehicles * 63.23 * Math.ceil(Math.max(minHours, hours) / 0.5);
document.getElementById('roundTrip').textContent = 'Round Trip: $' + roundTrip.toFixed(2);
});
</script>
<script type="text/javascript"> var localStoragePrefix = "ct-{{ cachebreaker }}"; var lastSave = 0; function saveLocal(data) { if (Date.now() - lastSave < 1000) { return; } let cookie = localStoragePrefix + "=" + JSON.stringify(data) + "; path=" + window.location.pathname + "'; SameSite=Strict"; cookie += "; expires=" + new Date(Date.now() + 1000 * 60 * 60 * 24 * 365 * 1000).toUTCString(); document.cookie = cookie; lastSave = Date.now(); } function loadLocal() { var cookiePrefix = localStoragePrefix + "="; var cookieStart = document.cookie.indexOf(cookiePrefix); if (cookieStart > -1) { let cookieEnd = document.cookie.indexOf(";", cookieStart); if (cookieEnd == -1) { cookieEnd = document.cookie.length; } var cookieData = document.cookie.substring(cookieStart + cookiePrefix.length, cookieEnd); return JSON.parse(cookieData); } } </script>
<script type="text/javascript"> window.addEventListener('load', function() { var observer = new MutationObserver(function() { window.parent.postMessage({height: document.documentElement.scrollHeight || document.body.scrollHeight},"*"); }); observer.observe(document.body, {attributes: true, childList: true, subtree: true}); window.parent.postMessage({height: document.documentElement.scrollHeight || document.body.scrollHeight},"*"); }); </script>
</body>
</html>
Calculator Tools allows you to instantly create and generate any simple one page web app for
free and immediately have it online to use and share. This means anything! Mini apps,
calculators, trackers, tools, games, puzzles, screensavers... anything you can think of that the
AI can handle.
The AI uses Javacript, HTML, and CSS programming to code your app up in moments. This currently
uses GPT-4 the latest and most powerful version of the OpenAI GPT language model.
Have you ever just wanted a simple app but didn't want to learn programming or pay someone to
make it for you? Calculator Tools is the solution! Just type in your prompt and the AI will
generate a simple app for you in seconds. You can then customize it to your liking and share it
with your friends.
AI has become so powerful it is that simple these days.
It uses GPT-4 which is the most powerful model for ChatGPT.
Calculator Tools does not remember things from prompt to prompt, each image is a unique image
that does not reference any of the images or prompts previously supplied.