Got create calendar to extract the siteurl, so it can work for multiple sites without modification.  The method of extracting the siteurl is probably fragile, but it works for now.