Fix to_seconds and calc_price