By default user will be required to change their passwords every 90 days and will be prompted 14 days before that. This default value can be changed at the tenant level for all users.
Login to the Office 365 Admin Center
Click Settings on the left navigation menu
Click Security & Privacy
Click Edit on the Password Policy
Edit the Policy