# Solution found - Calculate variable and save in item

**URL:** <https://community.openhab.org/t/solution-found-calculate-variable-and-save-in-item/140950>\
**Category:** Beginners\
**Created:** [November 12, 2022, 3:54pm UTC](https://community.openhab.org/t/solution-found-calculate-variable-and-save-in-item/140950 "2022-11-12T15:54:36Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![MrMister247](https://community.openhab.org/letter_avatar_proxy/v4/letter/m/8e7dd6/32.png) [@MrMister247](https://community.openhab.org/u/MrMister247)\
**Post date:** [November 13, 2022, 11:09am UTC](https://community.openhab.org/t/solution-found-calculate-variable-and-save-in-item/140950/3 "2022-11-13T11:09:08Z")

</div>

A few hours after my posting I found some Information that helped me

=\> [https://zukunftathome.de/stromzaehler-und-aktuellen-stromverbrauch-in-openhab-darstellen/](https://zukunftathome.de/stromzaehler-und-aktuellen-stromverbrauch-in-openhab-darstellen/)

In German, but now I have the values that I want.

Hint: This post is for OpenHab 2.x, in OpenHab 3.x the timestamps are different

=\> [Migrate JodaTime to Java LocalDateTime in OH3 (withTimeAtStartOfDay) - #5 by MrSebi](https://community.openhab.org/t/migrate-jodatime-to-java-localdatetime-in-oh3-withtimeatstartofday/111252/5)

Thank you

---

_[View the full topic](https://community.openhab.org/t/solution-found-calculate-variable-and-save-in-item/140950)._
