Click the Profile icon in the navigation bar to go to your personal profile. There are multiple sections for availability:
...
Turn on Allow members to contact me to let people send messages and schedule meetings.
...
...
When you turn this option off, no one can click the contact buttons in your profile.
...
My Availability
This is the general time range when you’re available for meetings. Don’t worry about time zones! It automatically adjusts to your local time. To set it:
...