I have been trying to get the math from the book to work as a subroutine as advertised. Tried several combinations and I cannot get them to work. Would someone please look at this as a second set of eyes.
It appears that it should be simple. I have a incrementing count program working but these will not work.