How can I correctly setup attachInterrupt() in this sketch?

Yes, I understand that the int's need square wave inputs. This is easily done. Thanks