Having hard time calculating S & L from SLIV 😩
no more:
S = mod(SLIV, 14)
L = rounddown(SLIV/14,0)+1
if calculated S+L > 14 then apply this correction
Corrected S = (14-S)-1
Corrected L = (14-L)+2
A couple of examples:
SLIV = 59
S = mod(59,14) = 3
L = rounddown(59/14,0)+1 = 4+1 = 5
S+L = 3+5 = 8
Hence no correction needed 😊
SLIV = 53
S = mod(53,14) = 11
L = rounddown(53/14,0)+1 = 3+1 = 4
S+L = 11+4 = 15
As S+L > 14, apply the correction
Corrected S = (14-11)-1 = 2
Corrected L = (14-4)+2 = 12