DH1:=IF(HREF(L,1),H-L,0); DH2:=IF(REF(H,1)L,REF(H,1)-REF(L,1),0); DH3:=IF(REF(H,1) AND H>REF(L,1),H-REF(L,1),0); DH4:=IF(H>REF(H,1) AND L DH0:=IF(HREF(H,1),0,DH1+DH2+DH3); DH:=DH0/(H-L)*100; MDH:SUM(DH0,5);