AFAIK the iPhone only allows pseudo background processes (http://www.iphonebuzz.com/new-iphone-sdk-allows-pseudo-backg...), so the app would have to be running when you leave work. Apple could make this kind of thing happen if they developed the app themselves, or you could make this app for the Android. See Locale: (http://www.localeandroid.com/).