Question normal

What would be the recommended optimal time for therapeutic anticoagulation?
What is the recommended time to stop therapeutic anticoagulation? It's is possible to extend the treatment until the day of discharge or even after it?