On the Rate of Star Formation in M31