calculate demo chart