add the study time into the API function