Thanks alot for your help. Is it difficult to make template sensor witch calculate cost per day or by month and week