The moment of inertia can not be solved with either of them formulas .calculating mass moment of inertia requires integrals and is not easy unless you are a whiz at calculus .
Do you mean the moment around a point ?
The formula for this is M=f*d for example if you have a lever with a (d) 500 mm (0.5m) long and at the end of that lever you apply a force of 100N then the moment around the end of the lever is 0.5 *100 = 50N.m . also known as torque .