Hours and minutes calculator that's available while you type
Calculate your work hours with a keyboard shortcut
Do you need to calculate your work hours? Typically, you need to find a calculator, calculate the hours worked and then copy it over. This process takes time and you can easily make mistakes.
With Text Blaze, you can automate the entire process and calculate your work hours as you type. Check out the examples below to see how it works.
Hours and minutes calculator - How many hours am I working?
Click on the snippet below and see what it's like to use it while typing.
Work hours calculator
Between {formmenu: 1; 2; 3; 4; 5; 6; 7; 8; default=9; 10; 11; name=from}:{formmenu: default=00; 15; 30; 45; name=from_m}{formmenu: default=am; pm; name=from_a} and {formmenu: 1; 2; 3; 4; default=5; 6; 7; 8; 9; 10; 11; name=to}:{formmenu: default=00; 15; 30; 45; name=to_m}{formmenu: am; default=pm; name=to_a} there are {if: diff>=0}{=floor({=diff/(3600)})} hours{if: remainder(diff, 3600)>0} and {=remainder(diff, 3600)/60} minutes{endif}{else}{=floor({=24+diff/(3600)})} hours {if: remainder({=diff}, 3600)<0} and {=60+remainder(diff, 3600)/60} minutes{endif}{endif}.{diff={time: X; at={=to}{=to_m}{=to_a}; pattern=hmma}-{time: X; at={=from}{=from_m}{=from_a}; pattern=hmma}}
_
Just give me the number!
Need to just type the hours and minutes, without the full sentence? No problem! The snippet below behaves exactly like the snippet above, but the output is just a number - the hours and minutes. Give it a try!
Work hours calculator - just the result
{note}Between {formmenu: 1; 2; 3; 4; 5; 6; 7; 8; default=9; 10; 11; name=from}:{formmenu: default=00; 15; 30; 45; name=from_m}{formmenu: default=am; pm; name=from_a} and {formmenu: 1; 2; 3; 4; default=5; 6; 7; 8; 9; 10; 11; name=to}:{formmenu: default=00; 15; 30; 45; name=to_m}{formmenu: am; default=pm; name=to_a} there are {endnote}{if: diff>=0}{=floor({=diff/(3600)})} hours{if: remainder(diff, 3600)>0} and {=remainder(diff, 3600)/60} minutes{endif}{else}{=floor({=24+diff/(3600)})} hours {if: remainder({=diff}, 3600)<0} and {=60+remainder(diff, 3600)/60} minutes{endif}{endif}{diff={time: X; at={=to}{=to_m}{=to_a}; pattern=hmma}-{time: X; at={=from}{=from_m}{=from_a}; pattern=hmma}}
_