Non-google Calendar

I have 2 email accounts setup using IMAP (not a google account). I can’t figure out how to setup the calendar such that it can sync with my phone and tablet (both samsung). This is my main delimma from switching away from outlook to emclient. Any advise please?