Hey guys, going to need some help here figuring out a good way to get the time of travel from the set up I have going here. Probably just overcomplicating things like I tend to :P

```
void setup()
{
ST1.attach( 8, 1000, 2000);
int a = 1 //This is the speed or power
//1 == full forward
//2 == medium forward
//3 == slow forward
//4 == slow reverse
//5 == medium reverse
//6 == full reverse
int b = 1 //this is the distance in feet
int c = 0 //this is time
//Time == Distance / speed
}
void loop()
{
if a == 1{
power = 150;
}else if a == 2{
power = 130;
}else if a == 3{
power = 110;
}else if a == 4{
power = 70;
}else if a == 5{
power = 50;
}else if a == 6{
power = 30;
}
//intialize power
ST1.write(power);
}
```

So all I need to do is figure out the formula I need to make to have my wheels turn x feet and x speed. The diameter of the wheels are 40 inches and the distance doesn't have to be exact but should be close. If anyone has any tips they would be greatly appreciated.