av=av equation how to calculate night24 av