This is the easiest, Gnome has a support for online accounts so adding your OwnCloud agendas is as simple as just entering your login in setting panel.
Go into Gnome settings then online accounts:
Add a new OwnCloud or NextCloud accound:
Fill in the following order the NextCloud/OwnCloud account setting: