Calculate useful values from raw ones.