Add support for new sessions to calculate_credit_cost.
Update calls to calculate_credit_cost to pass in the session cost and whether a session was created.