People recover at different rates.
One person may leave the hospital in just a few days whereas another may be in the hospital for weeks. When you can resume normal activities including flying in a plane depends on whether there are complications. So there is no one answer to this question. The surgeon and cardiologist will advise you depending on how quickly you recover.