Formulo
Avoid the divide-by-zero error