The idiom is to have to (do something) .
It means that the action described by the final infinitive must be done within the amount of time allotted.
The students had one hour to complete the exam.
We have three months to install the kitchen cabinets.
Martha and Sam have...