Mast Tumor, amputation for a dog

We have an 8 year old lab who was recently diagnosed with a Mast tumor on his hind leg. The oncologist recommends an amputation, because the tumor is under the skin and close to the knee. It would be too complicated to remove just the tumor, sadly. The good news is that the cancer has not spread to any other body part. Once the leg is amputated, the risk of cancer returning is much lower.

I am trying to find out how long the recovery time will be. How long will he be in the hospital, and when he gets home, will he be able to walk on his own right away?