Generally speaking, you should plan to stay in Spain for one week. Knee replacement surgery is usually an inpatient procedure. Most people spend 2-3 nights in the hospital following the operation. You will also spend a few nights in a hotel.