Please use code tags .
You could just sum up the delta times when the condition is true. Something like:
private float timesum;
private void Update()
{
if (Data <1000 && Data > 800)
{
timesum += Time.deltaTime;
}
else
{
timesum = 0.0f; // reset the timer when condition is no longer true
}
if(timesum >= 3.0f)
{
// your logic here
}
}
Edit: Messed up.