Inclusion Criteria:  Diagnosis of resectable pancreatic cancer Diagnosis of resectable biliary tract cancer (includes cholangiocarcinoma and ampullary cancer) ECOG (Eastern Cooperative Oncology Group scale) performance status ≤ 2  Exclusion Criteria:  Serious active infection Uncontrolled severe pain Severe neurologic or cardiac impairment according ACSM criteria Uncontrolled severe respiratory insufficiency as determined by the treating clinician Any other contraindications for exercise as determined by the treating physician Poor Swedish comprehension Pregnancy