Hi Frequency & ratio capture

What Arduino are you using, and at what inpuy frequency does the code fail?