[#32] finished calculating price and corresponding tests