function to determine commuter or overnight status.