A controller in an ambulatory drug delivery device automatically creates gradual transitions between basal rates entered by a user. The user may enter at least two target basal rates and two corresponding durations for delivering a medication at each rate. Systems and methods for such drug delivery are described.