Replaced calculate_price to parser_helper.
Refactored calculate_price.
Wrote spec for calculate_price.