front: Improve readability of a few calculations.