How do the derive the formula

It is not clear which formula you are referring to. Please provide more information or context so that I can assist you better.

To derive a formula, you generally need to start from the basic principles and use logical reasoning and mathematical techniques to arrive at the desired formula. The process may vary depending on the specific formula you are trying to derive. Can you please provide more information about the formula you are interested in?