Sum hours from calendar appointments

I want to sum my hours from calendar appointments. Is there a way to do this within Nextcloud? Or is there a way to do it with the ics export in combination with another tool?

I like to hear from you if you have experience with or ideas about this.