State Polytechnic Management has embarked on secret motivational promo to motivate staff that are dedicated to their job. Rule 1: Staff that comes to school early (7:30 AM) for eight consecutive months will be promoted to the next level, Rule2 staff that stays in the office till closing hour for eight consecutive months (4:PM) will be promoted to the next step. Staff must obey rule 1 and rule 2 to qualify for the promotion.
Represent this information using an algorithm​