Hi... can anyone help me figure this one out?

If I want a value in one cell to only go to 48 and anything accumulated after that amount be added to another cell.... is there a formula I can use?

Eg: B4 is at 50, but I want it only to read 48 and add the 2 to A4.