Simple DPS calculator written in PHP