Fixed error when calculating number of AL days