About 6 weeks for a strained knee.
Soft shoes can help if you are standing.
If you can’t wear them at work at least wear them at other times.
A hot bath may give some relief and help with getting a good night’s sleep.
Depending on where you are keep warm while you sleep cold feet/legs won’t have good circulation and may slow the healing process.
Massage may also give relief.