Program your HP 33s RPN Calculator to total the amount in Litres of breathing gas needed for a particular dive.
Input prompts for Depth ("D") in meters, Time ("T") at that depth in unit minutes with seconds in decimal base ten format
[so for example, 1min 30sec is entered as 1.5], and SCR ("S") [SCR --stands for Surface Consumption Rate, same as SAC rate in litres/min].
Program loops through your depth range, time at each depth and SCR, all the way to the surface --and yields the total gas needed in Litres.
L0001 LBL L
L0002 INPUT D
L0003 INPUT T
L0004 INPUT S
L0005 (D/10 + 1) X T X S [i.e. Depth-divided-by-10 plus 1, multiplied by Time and multiplied by SCR]
L0006 ∑+
L0007 29
L0008 STO i
L0009 VIEW(i)
L0010 D – 3
L0011 STO D
L0012 x ≥ 0?
L0013 GTO L
L0014 CLVARS
L0015 ∑x
L0016 ∑x
L0017 ∑x
L0018 ∑x
L0019 CL∑
L0020 RTN
PRGM TOP
(All the above is just an iterative application of a Gas Calculation exercise in the GUE Fundamentals of Better Diving Workbook. . .)