Compacting calendar data with bit operations