def METHOD_NAME(company, account_type, period_list, accumulated_values, filters):
	data = {}
	total = 0
	for period in period_list:
		start_date = get_start_date(period, accumulated_values, company)
		filters.start_date = start_date
		filters.end_date = period["to_date"]
		filters.account_type = account_type
		amount = get_account_type_based_gl_data(company, filters)
		if amount and account_type == "Depreciation":
			amount *= -1
		total += amount
		data.setdefault(period["key"], amount)
	data["total"] = total
	return data