# How to write formula to count the signal

I am stuck with two questions.

I need to write the formula for generation of a coil(it's a term i am using but can also be taken as x) on my sensor basis i.e if the sensor is on and the force is greater than 10kN and speed is greater than 2 m/min then there is generation of coil.(we get the force and speed value from the other sensor).

2.After the generation of coil(X) ,I want to write the formulaenter image description here for calculating the productive time of each coil.(the staring time of 1 coil to the starting time of my second coil is the productive time)

*in the diagram it's more clear, it will show the count of the sensor

New contributor
Nitesh is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
• What do you mean by “generation if a coil” it is a term I am not familiar with. I think that more background into your question would help someone come up with a good answer. – Q the Platypus 2 days ago
• I see you have asked this on other stack exchanges and they all have run into the same problem. You simply have not given us enough information to work out what you want to know. – Q the Platypus 2 days ago