LM393 Positive Hystereses Calculation

How did you calculate that? I want it to trip at 13.3V and 12.8V.