Time Card Calculator | Chronotek (2024)

Using the Time Card Calculator

First, fill in the start and stop times and enter the lunch/break times for each day. Next, hit “Calculate” to generate your timesheet totals for the work week. Finally, print or record the totals to use in payroll.

'; } // if a source element was provided, set focus and select it as a user convenience if ( args.el ) { window.errObj = args.el; setTimeout(function() { if ( window.errObj.focus ) { window.errObj.focus(); } if ( window.errObj.select ) { window.errObj.select(); } window.errObj=0; }, 250); } return false; } // clear the show_message handler function clear_message(){ show_message(); } validate = function(obj){ tmp = parseInt(obj.value,10); // confirm it's a number (added 12/12/2014) if (isNaN(tmp)){ return show_message({ msg: 'Please enter a number.', msg_type: 'error' }); } if ( obj.name.match(/(start|end)_min/) ) { if ( tmp < 0 || tmp > 59 ) { return show_message({ msg: 'Minutes must be between 0 and 59', msg_type: 'error', el: obj }); } } else if(obj.name.match(/(start|end)_hr/) && obj.init){ // accommodate 0 to allow the value to be cleared (when resetting a line previously remembered). if ( tmp < 0 || tmp > 12 ) { return show_message({ msg: 'Hour must be between 1 and 12', msg_type: 'error', el: obj }); } } } cal_days_sum = function(){ /* sum the hours column(s) and give a total of the hours shown -- mainly for multiple days */ if(!this.rowTotals){ this.rowTotals = { rowNormal : [], rowOvertime : [], rowTotal : [] }; /* build a list of the objects containing data we need to sum up */ var tmparr = document.getElementsByTagName('div'); for(var i=0; i

0){ // if(!confirm(rowSumNormal + ' -- ' + rowSumOvertime + ' -- ' +rowSumTotal)){ exit; } //} /* update the summary of all rows totals */ for(var i=0; i<5; i++){ /* top and bottom rows for convenience */ var obj = document.getElementById('elTotalNormal'+i); if(obj){ obj.innerHTML = rowSumNormal.toFixed(2); } var obj = document.getElementById('elTotalOvertime'+i); if(obj){ obj.innerHTML = rowSumOvertime.toFixed(2); } var obj = document.getElementById('elTotalHours'+i); if(obj){ obj.innerHTML = rowSumTotal.toFixed(2); } } } // accommodate optional 1/4 hour rounding function roundMinutes(minObj,hrObj){ var f = minObj.form; var n = minObj.value; var h = parseInt(hrObj.value, 10); var row = minObj.name.match(/\d*$/); var name_prefix = minObj.name.match(/start|end/); var ampm = f.elements[ name_prefix + '_time' + row ]; // the associated AM/PM input if(n>=0 && n<=7) return '00'; if(n>=8 && n<=22) return '15'; if(n>=23 && n<=37) return '30'; if(n>=38 && n<=52) return '45'; if(n>52){ hrObj.value = h+1; // 13 should roll the AM|PM over and become 1 if ( hrObj.value > 12 ) { hrObj.value = 1 if ( ampm.value === 'PM' ) ampm.value = 'AM'; else ampm.value = 'PM'; } return '00'; } } calc = function(obj){ var tot_hr; var tot_min; var t; /* temp current var (abbreviated) */ /* get the sibling objects */ var objN = obj.name.match(/\d+$/); //get the object number so we can find it's siblings var f = obj.form; var start_hr = eval('f.start_hr'+objN); var start_min = eval('f.start_min'+objN); var start_time = eval('f.start_time'+objN); var end_hr = eval('f.end_hr'+objN); var end_min = eval('f.end_min'+objN); var end_time = eval('f.end_time'+objN); var break_hr = eval('f.break_hr'+objN); var break_min = eval('f.break_min'+objN); /* validate hour and minute limits */ clear_message(); // clear error t = start_hr; validate(t); t = start_min; validate(t); t = end_hr; validate(t); t = end_min; validate(t); t = break_hr; validate(t); t = break_min; validate(t); // /* accommodate optional 1/4 hour rounding */ // if(f.roundQTR.checked){ // start_min.value = roundMinutes(start_min,start_hr); // end_min.value = roundMinutes(end_min,end_hr); // break_min.value = roundMinutes(break_min,break_hr); // } /* convert to 24 hour */ var tmp_start_hr = start_hr.value; if(tmp_start_hr.length>1 && tmp_start_hr.charAt(0)=='0'){ //remove leading string "0" tmp_start_hr=tmp_start_hr.substr(1,tmp_start_hr.length); } start_hr.val = parseInt(tmp_start_hr, 10); //force it to be a number //alert(start_hr.value + ' -- '+start_hr.val); if(start_time.options[start_time.selectedIndex].text.match(/PM/,'i')){ if(start_hr.val < 12){ start_hr.val += 12; /* 01-11PM equal 13-23hrs in 24hr clock */ } } else { //AM if(start_hr.val == 12){ start_hr.val = 0; /* 12 AM = 00 AM */ } } end_hr.val = parseInt(end_hr.value, 10); if(end_time.options[end_time.selectedIndex].text.match(/PM/,'i')){ if(end_hr.val > 0 && end_hr.val < 12){ end_hr.val += 12; /* 01-11PM equal 13-23hrs in 24hr clock */ } } else { if(end_hr.val == 12){ end_hr.val = 0; /* 12 AM = 00 AM */ } } break_hr.val = parseInt(break_hr.value, 10); tot_hr = (end_hr.val - start_hr.val - break_hr.val); /* convert minutes from 60 to 100 */ start_min.val = parseFloat(start_min.value) / 60; end_min.val = parseFloat(end_min.value) / 60; break_min.val = parseFloat(break_min.value) / 60; tot_min = (end_min.val - start_min.val - break_min.val); /* accommodate graveyard */ if(start_hr.val > end_hr.val){ end_hr.val += 24 tot_hr = (end_hr.val - start_hr.val) } /* if the whole row is zero'd reset the total for that row */ //alert(start_hr.val+'--'+start_min.val+'--'+end_hr.val+'--'+end_min.val); if( start_hr.val==0 && start_min.val==0 && end_hr.val==0 && end_min.val==0 ){ t = '0.00'; /* don't calculate a total if everything is "0" */ } else{ t = parseFloat(parseFloat(tot_hr) + parseFloat(tot_min)); if(t<0){ t = '0.00'; } else{ /* // need a decimal point + two digits to it's right if(!t.toString().match(/\./)) t+= '.00' else if(!t.toString().match(/.+\.[0-9][0-9]/)){ t+='00' } t = t.toString().match(/.+\.[0-9][0-9]/) */ // try .toFixed() instead... t = t.toFixed(2); } } // alert(start_hr.val +'--'+ end_hr.val+'--tot_hr='+tot_hr+'--tot_min='+tot_min+'--t='+t); obj = document.getElementById('rowTotal'+objN); var el = document.getElementById( 'message_el' ); if ( el && el.innerHTML ) { obj.innerHTML = 'NA'; return; // an error occurred, return without continuing } else { obj.innerHTML = t; /* and backward calculate the normal and overtime hours from the total */ var normalHours = parseFloat(t) || 0; var overtimeHours = 0; if(normalHours > 8){ overtimeHours = normalHours - 8; normalHours = 8; } obj = document.getElementById('rowNormal'+objN); obj.innerHTML = normalHours.toFixed(2); obj = document.getElementById('rowOvertime'+objN); obj.innerHTML = overtimeHours.toFixed(2); } cal_days_sum(); } /* start by forcing a calc */ document.ivForm.mcalc.click(); //-->

Want to Track Employee Hours the Smart Way?

Our simple time clock allows employees to clock in and out from any device and any location. Whether your employees clock in by phone call or use the mobile app, their hours are automatically logged and easily integrated with your payroll system.

Time Card Calculator | Chronotek (2024)
Top Articles
Texas Go Math Grade 5 Answer Key PDF Volume 1, 2 | Texas Go Math 5th Grade Answers
Walgreens pharmacy - Espagnol - Anglais Traduction et exemples
Will Byers X Male Reader
Food King El Paso Ads
Craigslist Monterrey Ca
Shoe Game Lit Svg
El Paso Pet Craigslist
Botw Royal Guard
Cash4Life Maryland Winning Numbers
Osrs But Damage
1TamilMV.prof: Exploring the latest in Tamil entertainment - Ninewall
Dark Souls 2 Soft Cap
Hover Racer Drive Watchdocumentaries
Mycarolinas Login
Summoners War Update Notes
Morgan And Nay Funeral Home Obituaries
Wizard Build Season 28
Price Of Gas At Sam's
Truth Of God Schedule 2023
Skyward Login Jennings County
Cta Bus Tracker 77
Recap: Noah Syndergaard earns his first L.A. win as Dodgers sweep Cardinals
Apple Original Films and Skydance Animation’s highly anticipated “Luck” to premiere globally on Apple TV+ on Friday, August 5
Rimworld Prison Break
Plaza Bonita Sycuan Bus Schedule
Village
Obituaries Milwaukee Journal Sentinel
Joann Fabrics Lexington Sc
Duke University Transcript Request
Osrs Important Letter
Dl.high Stakes Sweeps Download
Lincoln Financial Field, section 110, row 4, home of Philadelphia Eagles, Temple Owls, page 1
Ff14 Laws Order
Haunted Mansion Showtimes Near Cinemark Tinseltown Usa And Imax
Crystal Mcbooty
Keeper Of The Lost Cities Series - Shannon Messenger
Body Surface Area (BSA) Calculator
The Best Restaurants in Dublin - The MICHELIN Guide
Empires And Puzzles Dark Chest
Craigslist Pets Plattsburgh Ny
Callie Gullickson Eye Patches
Exam With A Social Studies Section Crossword
Top 1,000 Girl Names for Your Baby Girl in 2024 | Pampers
The Nikki Catsouras death - HERE the incredible photos | Horror Galore
Craigslist Chautauqua Ny
Canonnier Beachcomber Golf Resort & Spa (Pointe aux Canonniers): Alle Infos zum Hotel
Arginina - co to jest, właściwości, zastosowanie oraz przeciwwskazania
De boeken van Val McDermid op volgorde
Motorcycle For Sale In Deep East Texas By Owner
2000 Fortnite Symbols
Provincial Freeman (Toronto and Chatham, ON: Mary Ann Shadd Cary (October 9, 1823 – June 5, 1893)), November 3, 1855, p. 1
Affidea ExpressCare - Affidea Ireland
Latest Posts
Article information

Author: Arielle Torp

Last Updated:

Views: 5747

Rating: 4 / 5 (61 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Arielle Torp

Birthday: 1997-09-20

Address: 87313 Erdman Vista, North Dustinborough, WA 37563

Phone: +97216742823598

Job: Central Technology Officer

Hobby: Taekwondo, Macrame, Foreign language learning, Kite flying, Cooking, Skiing, Computer programming

Introduction: My name is Arielle Torp, I am a comfortable, kind, zealous, lovely, jolly, colorful, adventurous person who loves writing and wants to share my knowledge and understanding with you.