Correct Accumulation function and ad PeriodPET

1 job for develop-SPEI
in 38 seconds, using 0 compute credits, and was queued for 3 seconds