please help with my project since i do not want to fail

And, you didn't say 'inches = duration / 74 /2 ;'

Slow down and do as you are told. If you want help from these guys, you gotta follow the rules and show that you are willing to help yourself......