public function get_average_filling_time($form_id) { $avg = RM_DBManager::get_average_value('STATS', 'time_taken', array('form_id' => $form_id)); //Round up to 2 digits after decimal point. return round($avg, 2); }