How long should I take Xarelto for a blood clot?

The recommended dose of Xarelto for treatment of DVT or PE is 15 mg twice a day with food for the first 21 days, followed by 20 mg once daily with food for the remaining treatment.