When to use a variable vs simple value returning function

Ah, yup. “Magic Numbers”, some folks call it.