app/helpers/application_helper.rb
def shopping_group_premium(plan_cost, plan_ehb_cost, can_use_aptc=true)
    return plan_cost unless session['elected_aptc'].present? && session['max_aptc'].present? && can_use_aptc

    aptc_amount = session['elected_aptc'].to_f
    cost = float_fix(plan_cost - [plan_ehb_cost, aptc_amount].min)
    cost > 0 ? cost.round(2) : 0
  end
#Shopping enrollment family premium (plan shopping page)
Shopping enrollment family premium (plan shopping page)
Shopping enrollment family premium ( plan shopping page )
def shopping_group_premium(plan_cost, plan_ehb_cost, can_use_aptc=true)
    return plan_cost unless session['elected_aptc'].present? && session['max_aptc'].present? && can_use_aptc
    aptc_amount = session['elected_aptc'].to_f
    cost = float_fix(plan_cost - [plan_ehb_cost, aptc_amount].min)
    cost > 0 ? cost.round(2) : 0
  end
def shopping_group_premium ( plan_cost , plan_ehb_cost , can_use_aptc = true ) return plan_cost unless session [ 'elected_aptc' ] . present? && session [ 'max_aptc' ] . present? && can_use_aptc aptc_amount = session [ 'elected_aptc' ] . to_f cost = float_fix ( plan_cost - [ plan_ehb_cost , aptc_amount ] . min ) cost > 0 ? cost . round ( 2 ) : 0 end
Shopping enrollment family premium (plan shopping page)
Shopping enrollment family premium ( plan shopping page )
plan_cost
plan_ehb_cost
can_use_aptc