If you want to know when the battery goes below 3.6V, then you would check AN0 for a count greater than 796.

2.8/3.6 = .77777
.777 X 1023 = 796