Added some math to index.php