If prayer is intrinsically good, how are its cycles and times determined?

The Goodness of Commanded Acts: Intrinsic and Instrumental