For example, when entering someone's office, one conventionally says 失礼します "shitsurei shimasu," as the visit is not complete yet, while when exiting one may say either "shitsurei shimasu" or, more politely, 失礼しました "shitsurei shimashita."