Code:
<html>
<head>
<script type="text/javascript">
function round2DP(num)
{
return (Math.round(num * 100) / 100);
}
function calcTickets(x, y)
{
return Math.round(((x-y)/(85/9*19))*(5/9*19));
}
function calcCost(x, y)
{
return Math.round(((x-y)/(85/9*19))*(5/9*19)*15);
}
function calcDays(x, y)
{
return round2DP((((x-y)/(85/9*19))*187)/86400);
}
function run()
{
var X = Number(document.getElementById("goal").value);
var Y = Number(document.getElementById("current").value);
document.getElementById("tickets").innerHTML = calcTickets(X, Y);
document.getElementById("cost").innerHTML = calcCost(X, Y);
document.getElementById("days").innerHTML = calcDays(X, Y);
}
</script>
<title>Nine Rings Lucky Calculator</title>
</head>
<body>
<h2>Nine Rings Lucky Calculator</h2>
<h3>Input</h3>
<form>
<p>Goal:</p>
<input type="text" id="goal" />
<p>Current Points:</p>
<input type="text" id="current" /><br /><br />
<button type="button" id="calculateButton" onclick="run()">Calculate</button><br /><br />
</form>
<h3>Results<h3>
<table border="1">
<tr>
<td>Tickets</td>
<td id="tickets"></td>
</tr>
<tr>
<td>Cost</td>
<td id="cost"></td>
</tr>
<tr>
<td>Days</td>
<td id="days"></td>
</tr>
</table>
</body>
</html>
Copy paste that into notepad and save it as "ninerings.html" (or whatever, as long as it ends with .html). Then open with your internet browser of choice. Is this the kind of thing you had in mind?
-Didn't make much of an effort to make it look good. Also didn't worry too much about properly following good coding practises and the like, but it's pretty good. Also didn't check the formulas. I don't consider this to be a final version.
-Borrowed little bits of code and the design from Chthon so credit to him.
----
I haven't used Google spreadsheets so I can't say whether that'd be a better solution.