Nw:=DAYOFMONTH()<>ref(DAYOFMONTH(),-1);
n1:=9;
nc1:=valuewhen(1,nw,Ref(C,-1));
nc2:=valuewhen(n1+1,nw,Ref(C,-1));
rs1:=100/nc2;
p1:=1/n1;
RS:=If(nw,(p1*Ref(C,-1))+((1-p1)*PREV),PREV);

MTFRSI:=100-(rs1/(1+RS));
MTFRSI

buda olmadı