function Set2PgStart(start, amnt) { var ret = 0; ret = (amnt*Math.floor(start/amnt)) - start; return ret; }