lol, yeah, no bye ;o)... I have slept now, but had not slept in a long time when I did that. surprised I did not make more mistaks than that.
Anyhow, yes you have the correct, and yes statuschanged is a unix timestamp(epoch), so yes I could use those to do this. However, we make two pay runs in each cycle. So there could be two different timestamps.
Thank you much for your input, I really appreciate it.