please help

dear all
may i ask which code can be used to calculate tension and fraction ,

thx you