PHP currency calculator