2018-08-28 Look at this piece of code: echo "Total Records: $n\n"; $min = (int) ($n / 5166) % 60; $hr = (int) ($n / 5166 / 60); echo "time expected: $hr:$min hh:mm (cal 5166 / minute)\n\n"; // by expierence 5166 records / min Then learn about magic numbers, about printf(), and about avoid- ing typos in comments. Really a good example of reality code. http://marmaro.de/lue/ markus schnalke