# Calculations

**URL:** <https://forum.getodk.org/t/calculations/5216>\
**Category:** Support\
**Created:** [February 1, 2016, 1:31pm UTC](https://forum.getodk.org/t/calculations/5216 "2016-02-01T13:31:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roxroy\_Bollers](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/roxroy_bollers/32/1669_2.png) [@Roxroy\_Bollers](https://forum.getodk.org/u/Roxroy_Bollers)\
**Post date:** [February 1, 2016, 1:31pm UTC](https://forum.getodk.org/t/calculations/5216/1 "2016-02-01T13:31:35Z")

</div>

Hello yall!  
I have a slight problem. I am developing a few forms and just recently  
noticed that in some of my forms the calculated results does not appear  
unless i swipe from the current page and swipe back. I am sure that this  
should be an automatic process but I just cannot seem to figure what I  
might be doing wrong.

Any help would be appreciated.

Example of my form

begin\_group no\_beneficiary BENEFICIARY field-list  
integer number\_men Number of Men yes  
integer number\_women Number of Women yes  
decimal number\_days Number of days yes  
calculate tpcalc ${number\_men} + ${number\_women}  
end group  
note display Total Number of Participants are: ${tpcalc}

Thanks  
Rox

> **···**
>
> --
> 
> * * *
> 
> "Like a camera I use the negative to develop..uDig"  
> "Success is the ability to go from one failure to another with no loss of  
> enthusiasm"  
> ----------------------------------------------------------------------------------------------------------\>
> 
> ## _Roxroy K. Bollers_ GIS & IT Service Provider tel. 592.685.2737 _........................................................._ _Follow Us On_ _Facebook [http://www.facebook.com/OutSourceRox](http://www.facebook.com/OutSourceRox)_ Google+ [https://plus.google.com/114064153117817313312](https://plus.google.com/114064153117817313312) Twitter: @drbollers [http://www.twitter.com/drbollers](http://www.twitter.com/drbollers)
> 
> ᐧ

---

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [February 10, 2016, 12:58pm UTC](https://forum.getodk.org/t/calculations/5216/2 "2016-02-10T12:58:41Z")

</div>

Rox,

Try moving the calculate outside the field-list. Does it work then?

Yaw

> **···**
>
> -- Need ODK consultants? Nafundi provides form design, server setup, in-field training, and software development for ODK. Go to https://nafundi.com to get started.
> 
> On Mon, Feb 1, 2016 at 3:31 PM, Roxroy Bollers [rkbollers@gmail.com](mailto:rkbollers@gmail.com) wrote:
> 
> > Hello yall!  
> > I have a slight problem. I am developing a few forms and just recently  
> > noticed that in some of my forms the calculated results does not appear  
> > unless i swipe from the current page and swipe back. I am sure that this  
> > should be an automatic process but I just cannot seem to figure what I  
> > might be doing wrong.
> > 
> > Any help would be appreciated.
> > 
> > Example of my form
> > 
> > begin\_group no\_beneficiary BENEFICIARY field-list  
> > integer number\_men Number of Men yes  
> > integer number\_women Number of Women yes  
> > decimal number\_days Number of days yes  
> > calculate tpcalc ${number\_men} + ${number\_women}  
> > end group  
> > note display Total Number of Participants are: ${tpcalc}
> > 
> > ## Thanks Rox
> > 
> > * * *
> > 
> > "Like a camera I use the negative to develop..uDig"  
> > "Success is the ability to go from one failure to another with no loss of  
> > enthusiasm"
> > 
> > ----------------------------------------------------------------------------------------------------------\>
> > 
> > ## _Roxroy K. Bollers_ GIS & IT Service Provider tel. 592.685.2737 _........................................................._ _Follow Us On_ _Facebook [http://www.facebook.com/OutSourceRox](http://www.facebook.com/OutSourceRox)_ Google+ [https://plus.google.com/114064153117817313312](https://plus.google.com/114064153117817313312) Twitter: @drbollers [http://www.twitter.com/drbollers](http://www.twitter.com/drbollers)
> > 
> > ᐧ
> > 
> > ## --
> > 
> > Post: [opendatakit@googlegroups.com](mailto:opendatakit@googlegroups.com)  
> > Unsubscribe: [opendatakit+unsubscribe@googlegroups.com](mailto:opendatakit+unsubscribe@googlegroups.com)  
> > Options: [http://groups.google.com/group/opendatakit?hl=en](http://groups.google.com/group/opendatakit?hl=en)
> > 
> > * * *
> > 
> > You received this message because you are subscribed to the Google Groups  
> > "ODK Community" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [opendatakit+unsubscribe@googlegroups.com](mailto:opendatakit+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Roxroy\_Bollers](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/roxroy_bollers/32/1669_2.png) [@Roxroy\_Bollers](https://forum.getodk.org/u/Roxroy_Bollers)\
**Post date:** [February 11, 2016, 12:24pm UTC](https://forum.getodk.org/t/calculations/5216/3 "2016-02-11T12:24:41Z")

</div>

Hello Yaw!  
Thanks for getting back to me on this - I will try that and see.

Rox

> **···**
>
> On Wed, 10 Feb 2016 at 08:59 Yaw Anokwa wrote:
> 
> > Rox,
> > 
> > Try moving the calculate outside the field-list. Does it work then?
> > 
> > ## Yaw
> > 
> > Need ODK consultants? Nafundi provides form design, server setup, in-field  
> > training, and software development for ODK. Go to [https://nafundi.com](https://nafundi.com) to  
> > get started.  
> > On Mon, Feb 1, 2016 at 3:31 PM, Roxroy Bollers [rkbollers@gmail.com](mailto:rkbollers@gmail.com) wrote:
> > 
> > > Hello yall!  
> > > I have a slight problem. I am developing a few forms and just recently  
> > > noticed that in some of my forms the calculated results does not appear  
> > > unless i swipe from the current page and swipe back. I am sure that this  
> > > should be an automatic process but I just cannot seem to figure what I  
> > > might be doing wrong.
> > > 
> > > Any help would be appreciated.
> > > 
> > > Example of my form
> > > 
> > > begin\_group no\_beneficiary BENEFICIARY field-list  
> > > integer number\_men Number of Men yes  
> > > integer number\_women Number of Women yes  
> > > decimal number\_days Number of days yes  
> > > calculate tpcalc ${number\_men} + ${number\_women}  
> > > end group  
> > > note display Total Number of Participants are: ${tpcalc}
> > > 
> > > ## Thanks Rox
> > > 
> > > * * *
> > > 
> > > "Like a camera I use the negative to develop..uDig"  
> > > "Success is the ability to go from one failure to another with no loss of  
> > > enthusiasm"
> > > 
> > > ----------------------------------------------------------------------------------------------------------\>
> > > 
> > > ## _Roxroy K. Bollers_ GIS & IT Service Provider tel. 592.685.2737 _........................................................._ _Follow Us On_ _Facebook [http://www.facebook.com/OutSourceRox](http://www.facebook.com/OutSourceRox)_ Google+ [https://plus.google.com/114064153117817313312](https://plus.google.com/114064153117817313312) Twitter: @drbollers [http://www.twitter.com/drbollers](http://www.twitter.com/drbollers)
> > > 
> > > ᐧ
> > 
> > --
> > 
> > > 
> > 
> > --
> > 
> > > Post: [opendatakit@googlegroups.com](mailto:opendatakit@googlegroups.com)  
> > > Unsubscribe: [opendatakit+unsubscribe@googlegroups.com](mailto:opendatakit+unsubscribe@googlegroups.com)  
> > > Options: [http://groups.google.com/group/opendatakit?hl=en](http://groups.google.com/group/opendatakit?hl=en)
> > > 
> > > * * *
> > > 
> > > You received this message because you are subscribed to the Google Groups  
> > > "ODK Community" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send an  
> > > email to [opendatakit+unsubscribe@googlegroups.com](mailto:opendatakit+unsubscribe@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > ## --
> > 
> > Post: [opendatakit@googlegroups.com](mailto:opendatakit@googlegroups.com)  
> > Unsubscribe: [opendatakit+unsubscribe@googlegroups.com](mailto:opendatakit+unsubscribe@googlegroups.com)  
> > Options: [http://groups.google.com/group/opendatakit?hl=en](http://groups.google.com/group/opendatakit?hl=en)
> > 
> > * * *
> > 
> > You received this message because you are subscribed to the Google Groups  
> > "ODK Community" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [opendatakit+unsubscribe@googlegroups.com](mailto:opendatakit+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> ## --
> 
> ## "Like a camera I use the negative to develop..uDig" "Success is the ability to go from one failure to another with no loss of enthusiasm" ----------------------------------------------------------------------------------------------------------\> _OutSourceRox_ _Roxroy K. Bollers_ GIS & IT Service Provider tel. 592.685.2737 _........................................................._ _Follow Us On_ _Facebook_ Google+ Twitter: @drbollers
