How can I limit customer selling with specific period

how can I limit customer selling with a specific period like a credit limit but with a date