I need a date calculator that I can download, where I can enter the start date and the duration and get the resulting end date. I’ve looked, but no can find. There are plenty of the type where you enter two dates and it tells you the duration, but that’s not what I need. Help, please.
I don’t know where you can get freeware to do this, but I have to do it all the time. Do you have Excel? You can calculate it with
If you don’t have Excel, hopefully someone else will be along soon to point you to what you’re looking for.
If you can wait until Saturday or so, I could cobble one together for you. I already have some programs for converting calendar dates to JD and back; what you want could be trivially built out of those. What’s your operating system?
I have excel, but typing in your formula as written gets me gibberish. Suggestion?
Chronos: It’s Windows XP Pro.
Yeah, I should probably try it before I tell people how to do it - sorry about that. Attempt #2:
Enter the starting date in one cell.
In another cell, enter =(Cell1)+(# of days)
I actually tried it this time, and it works on my end.
Wow, magic! Thanks.
Alternately, if you want something that doesn’t require you to have excel, create a text file called calc.hta and paste this code in it:
<html>
<head>
<script language="javascript">
window.resizeTo(150,250);
function Go()
{
var days = new Number(document.all.inputform.duration.value);
var start = new Date(document.all.inputform.date.value);
var end = new Date(start.valueOf() + days * 24 * 60 * 60 * 1000);
document.all.inputform.end.value = DateStr(end);
}
function Init()
{
document.all.inputform.date.value = DateStr(new Date());
document.all.inputform.duration.value = 0;
Go();
}
function DateStr(d)
{
return "" +
(d.getMonth() + 1) + "/" +
d.getDate() + "/" +
d.getYear();
}
</script>
</head>
<body onload="Init();">
<form name="inputform" action="">
Date:<br>
<input type="text" id="date" size="10"><br>
Duration:<br>
<input type="text" id="duration" size=5>days<br>
<input type="submit" onclick="Go(); return false;" value="Go"><br>
End date:<br>
<input type="text" id="end" size="10">
</form>
</html>