3 days and long time
Typical hospital stay is about 3 days.
There are some patients that can go home the day of surgery and others that need 4-5 days. The hip replacements should last many years. I typically mention 15 years, but the newer materials should be able to last much longer. Consult your doctor.