Changed get_daily_percentile function #314

Code formatting.