Enhancements to the standard IBM Lotus Notes 6.5/7.0/8.x mail template.
replace
mailinuse = Format(Round(db.percentused*dbsize/100,1),"0.0")<br/>
with
If dbmax<>0 Then<br/> mailinuse = Format(Round((dbsize/dbmax)*100,1),"0.0") <br/> End If