Update m formula