prevX function

added a modified version of the prev function
to yield previous weeks and years mod 16
building out the predict function