NXP-11426: rewrite rate computation to avoid division by zero