raw phosim magnitude calculator