AB period fix

- minor fix to calculation of AB period

Signed-off-by: Dustin Ngo (MacBook) <dustin.ngo@gmail.com>