// This script uses first 20 bits of bu_userbits to record the total time
// user has used the system.

// You should add this to your lscript.


function main() {
  var a, b;

  a=bv_loginhour*60+bv_loginmin;
  b=bf_hour*60+bf_min;
  if (b<a) b=b+1440;
  bu_userbits=bu_userbits+b-a;
  printf("You have been online for %u minutes.\n",bu_userbits & ((1<<20)-1));
}