For calendar it works the same way as mail does (IMAP Mail)
calendar is stored on the cloud but is cached locally for if you have no connection, if you make any changes while offline, they will be stored locally and then sent to the cloud next time you have a internet connection