Ages of CSOs: the case of 4C 31.04