//Returns how many minutes to rollover
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
int MinutesToRollover()
{
//get the html source
string source = visit_url("charpane.php");
//the start of the rollover var
int ROS = index_of( source, "var rollover = " ) + length( "var rollover = " );
//the end of the rollover var
int ROE = index_of( source, ";", ROS );
//the start of the rightnow var
int RNS = index_of( source, "var rightnow = " ) + length( "var rightnow = " );
//the end of the rightnow var
int RNE = index_of( source, ";", RNS );
//the start of the rightnow var
//extract the string containing the number part of the start of rollover
string rollover = substring(source, ROS, ROE);
//extract the string containing the number part of kol's version of rightnow
string rightnow = substring(source, RNS, RNE);
return ( to_int( rollover ) - to_int( rightnow ) ) / 60;
}