The present disclosure provides an electronic device. The electronic device comprises: at least one sensor; a communication circuit; a display; a memory storing at least one program; and at least one processor electrically connected to the memory and executing at least one instruction of the program stored in the memory, wherein the at least one processor is able to perform: receiving a
user input for registering a first activity schedule for a first reference date of a calendar; generating an activity program including at least one detailed activity schedule related to the activity from a first start date to a first target date, by using an activity type for the first activity schedule and an
activity level of a user; analyzing a correlation between the detailed activity schedule of the activity program and the user's calendar schedule, the user's life pattern, or at least some of parameters related to the user's
activity level; determining the detailed activity schedule of the activity program on the basis of the analysis result of the correlation; registering the determined detailed activity schedule as a schedule of the calendar; adjusting at least part of the detailed activity schedule by using the user's life pattern for a recent period or at least one pattern of the parameters related to the user's
activity level; and outputting an alarm for a scheduled detailed exercise schedule while tracking the detailed activity schedule.