Modeling carcinogenesis under a time-changing exposure