Delicious math for PHP