For A1 try

=MIN(50,Sum_formula)

and in A2

=MAX(0,Sum_formula-50)