The math behind Recent Average Credit (RAC)