clock/income_clock.js
/*
* Calculates total accumulated money since midnight
*/
Calculates total accumulated money since midnight
Calculates total accumulated money since midnight
function calcMoney(rate) {
  var totalSeconds = (hour() * 60 * 60) + (minute() * 60); 
  return (totalSeconds + second()) * rate;
}
function calcMoney ( rate ) { var totalSeconds = ( hour ( ) * 60 * 60 ) + ( minute ( ) * 60 ) ; return ( totalSeconds + second ( ) ) * rate ; }
Calculates total accumulated money since midnight
Calculates total accumulated money since midnight
// number of seconds since midnight