Focus on correctness, readability and security first.
Price is calculated after clarifying complexity and scope.