location block

hi all!!!

can someone please suggest in a case I'm stuck in.

in my system, I want to set a lead time, which means if I set the lead time to 7 days on a location and the location has pending stock from more than 7 days then it should totally block the location. no sending or receiving from that location.

any kind of help is needed.