local numbervar thisLine;
shared numbervar grandTotal;
IF {billing_frequency} like "*quarter*" THEN
thisLine:={#RTotal1}/3
else
if {billing_frequency} like "*2-Annual*" Then
thisLine:={#RTotal1}/6
Else
if {billing_Frequency} like "*yearly*" then
thisLine:={#RTotal1}/12
ELSE
thisLine:={#RTotal1};
grandTotal := grandTotal + thisLine;
thisLine
set the value that you want to the local variable,
set the grand total to keep a running total of the values
in another formula, display the grand total:
shared numbervar grandTotal;
grandTotal
HTH