Mathematical modeling of marker influx and efflux in cells