Awell Health Developer Hub
Developer Hub
← Back to the Marketplace
Math

Math

The Math extension provides some useful actions to perform simple mathematical operations.
Math

title: Math

description: This extension adds custom actions to your care flow for simple mathematical operations.

Math

This extension adds custom actions to your care flow for simple mathematical operations.

Custom Actions

Generate random number

Generates a random (whole) number that falls between the ranges of two numbers [min, max].

Calculate date difference

Calculate the difference between two dates where "date left" is the minuend and "date right" the subtrahend.

You can choose the unit in which you would like to see the difference expressed:

  1. Seconds: get the number of seconds between the given dates. Fractional seconds are truncated towards zero.
  2. Minutes: get the signed number of full (rounded towards 0) minutes between the given dates. Fractional minutes are truncated towards zero.
  3. Hours: get the number of hours between the given dates. Fractional hours are truncated towards zero.
  4. Days: get the number of full day periods between two dates. Fractional days are truncated towards zero.
  5. Weeks: get the number of full weeks between two dates. Fractional weeks are truncated towards zero.
  6. Months: get the number of full months between the given dates. Fractional months are truncated towards zero.
  7. Years: get the number of full years between the given dates.
Pricing
Free
Custom Actions
Generate random number
Calculate date difference
Author
Awell
Version
1
Support
info@awellhealth.com

Other extensions