# Can you create a simple calculation in the post?

**URL:** https://meta.discourse.org/t/can-you-create-a-simple-calculation-in-the-post/157909
**Category:** Feature
**Created:** [July 16, 2020, 7:52am UTC](https://meta.discourse.org/t/can-you-create-a-simple-calculation-in-the-post/157909 "2020-07-16T07:52:55Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![slivo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/slivo/32/186825_2.png) [@slivo](https://meta.discourse.org/u/slivo)
#### Post date: [July 16, 2020, 7:52am UTC](https://meta.discourse.org/t/can-you-create-a-simple-calculation-in-the-post/157909/1 "2020-07-16T07:52:55Z")

</div>

1 case : Is it possible if I enter in creator 2+2 = {x} then in post _2+2 = 4_ ? Something like that ?

2 case: Is it possible to have dynamic content in the post, e.g. _the current time is 11:55 CEST_ etc ?

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [July 16, 2020, 8:08am UTC](https://meta.discourse.org/t/can-you-create-a-simple-calculation-in-the-post/157909/2 "2020-07-16T08:08:53Z")

</div>

You will have to write a plugin for that.

As a starting point, you can [look](https://github.com/discourse/discourse/tree/c00dab89e47baa582046574e91d6da37616b7a75/plugins/discourse-narrative-bot) at how the discobot rolls 🎲

---

<div class="post-metadata">

### Author: ![slivo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/slivo/32/186825_2.png) [@slivo](https://meta.discourse.org/u/slivo)
#### Post date: [July 16, 2020, 8:11am UTC](https://meta.discourse.org/t/can-you-create-a-simple-calculation-in-the-post/157909/4 "2020-07-16T08:11:36Z")

</div>

And what if you do a patch post with api, does that make sense?

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [July 16, 2020, 8:15am UTC](https://meta.discourse.org/t/can-you-create-a-simple-calculation-in-the-post/157909/5 "2020-07-16T08:15:39Z")

</div>

Sure, you can also use a `post_created` webhook and “patch” the post using an API call if you’re using an external service.

---

<div class="post-metadata">

### Author: ![slivo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/slivo/32/186825_2.png) [@slivo](https://meta.discourse.org/u/slivo)
#### Post date: [July 16, 2020, 9:02am UTC](https://meta.discourse.org/t/can-you-create-a-simple-calculation-in-the-post/157909/6 "2020-07-16T09:02:04Z")

</div>

Is there a good skeleton, an example for a beginner?

---

<div class="post-metadata">

### Author: ![frold](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/frold/32/82547_2.png) [@frold](https://meta.discourse.org/u/frold)
#### Post date: [July 16, 2020, 9:27am UTC](https://meta.discourse.org/t/can-you-create-a-simple-calculation-in-the-post/157909/7 "2020-07-16T09:27:12Z")

</div>

> [@slivo](#):
>
> 1 case : Is it possible if I enter in creator 2+2 = {x} then in post _2+2 = 4_ ? Something like that ?

It will not do the math - but would let you set up equations

> [@Discourse Math](https://meta.discourse.org/t/discourse-math-plugin/65770):
>
> discourse2Summary Discourse Math uses [MathJax](https://www.mathjax.org/) (default) or [KaTeX](https://katex.org/) to render maths in your Discourse forum.open_bookInstall Guide This plugin is bundled with Discourse core. There is no need to install the plugin separately. Enabling Math The Math plugin can be enabled from its settings, accessed from your admin/plugins page: [Math settings] Features Once enabled, you can render inline math by wrapping with a single $ like so: $E=mc^2$. You can render blocks of math…
