This was one bug `s.get_consumption()` sometimes is `Decimal` so the multiplication failed.