How do i stop the buzzing action once door sensor is opened (LOW)

ok.. How the system should work:

It is something like a reminder to Close the fridge during the timing

So E.g. when i set the alarm @ 10 pm,

it will ring at 10pm for 2 mins (Hence the min == x || min == y)

But i want the alarm (Buzzer) to stop ringing when i actually close the fridge (Regardless if it left 1 min on the alarm or not)

so yea.. that's the main point of the project.. Hope you understand..
@UKHeliBob