What is the formula for tension
Tension is a force. There's no "formula" for it. Please be more specific as to what you mean to ask.