An analog voltage input pin (AVP) of an ECU has an input voltage range of 0 to 10V and a Filter Frequency Limit of 330Hz. The input signal voltage (ISV) coming from a sensor to the AVP has a range between 0.5V and 5V. Using the ISV, the software should produce a digital state signal (DSS) in time domain with 0 and 1 states. So, two upper and lower thresholds are set - upper 4V and lower 2V. If the ISV is above 4V, then the DSS has the state 1 and if below 2V, then the state 0. But the direct conversion of ISV into DSS gives a bouncing signal. So, a debounce time is to be calculated to have the states of the DSS without transients. Do you have an idea how the state debounce time can be calculated?
You don't calculate a bounce time, you measure it. Operate the switch many times, record the digital signals, and observe how long the bouncing goes on for. From that, you need to estimate what the likely longest time bouncing will be going on for, twice as long as you've ever seen in many trials might be a reasonable estimate. With that estimate, you can apply debounce in your software.