Skip to content

Instantly share code, notes, and snippets.

@vvps
Created March 24, 2015 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vvps/58c02baa8d3c3d44b8e3 to your computer and use it in GitHub Desktop.
Save vvps/58c02baa8d3c3d44b8e3 to your computer and use it in GitHub Desktop.
AHK script to show number of days remaining | Project deadline, etc
#^+?:: ;Winkey + Ctrl + Shift + ?
FormatTime, Today,, yyyyMMdd
rDays := 20200101
rDays -= Today, days
rWeeks := rDays//7
rWeekDays := mod(rDays,7)
rWorkDays := rDays - (rWeeks*2) ;Removing Saturdays and Sundays
MsgBox, 64, Countdown , %rDays% total days `n%rWeeks% weeks and %rWeekDays% days `n%rWorkDays% workdays approx.
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment