Calculation

Dear all, thanks for all the good work,
I need some help
I have a date field where entrants input LNMP (the date the mother started
her monthly cycle)
I need to calculate weeks of amenorrhea - the formula for this is

  • All you have to do is count the number of days there were from the
    first day of the last menstrual cycle to the present day.(e.g.: March 20)
  • Take the first date of the last menstrual period. (e.g.: January 10th)
  • Deduct it from the number of dates in that month. (31-10=21)
  • Add the remaining days to it. (21+ 28(Feb)+20(March)=69 days)
  • Divide the number of days from 7. (69/7=9 weeks and 6 days)
  • Then you have the amenorrahe weeks

any help will be much appreciated

Thanks

See decimal-date-time (.)

https://opendatakit.org/help/form-design/binding/
https://opendatakit.org/help/form-design/binding/

ยทยทยท On Mon, Nov 23, 2015 at 8:33 AM, Ayoub Kakande wrote:

Dear all, thanks for all the good work,
I need some help
I have a date field where entrants input LNMP (the date the mother started
her monthly cycle)
I need to calculate weeks of amenorrhea - the formula for this is

  • All you have to do is count the number of days there were from the
    first day of the last menstrual cycle to the present day.(e.g.: March 20)
  • Take the first date of the last menstrual period. (e.g.: January 10th
    )
  • Deduct it from the number of dates in that month. (31-10=21)
  • Add the remaining days to it. (21+ 28(Feb)+20(March)=69 days)
  • Divide the number of days from 7. (69/7=9 weeks and 6 days)
  • Then you have the amenorrahe weeks

any help will be much appreciated

Thanks

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: 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.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com