@agc-calculators/breeding-date

Includes a breeding date calculator and form schema.

Usage no npm install needed!

<script type="module">
  import agcCalculatorsBreedingDate from 'https://cdn.skypack.dev/@agc-calculators/breeding-date';
</script>

README

ag-calculators.com

@agc-calculators/breeding-date

Includes a breeding date calculator and form schema.

Installation

Add breeding-date to your project:

npm i @agc-calculators/breeding-date

Calculate Usage

import { calculate } from '@agc-calculators/breeding-date'

calculate({
    calvingDate: '2019-1-1',
    gestationPeriod: '283'
}).then(result => {
    console.log('breeding date', result.values['breedingDate'])
})

Schema Usage

import { schema, uischema } from '@agc-calculators/breeding-date'

Use with any web component that accepts a schema, i.e. JsonForms

<JsonForms schema={schema} uischema={uischema} />

Language Support

  • Chinese (Simplified)
  • English
  • French
  • German
  • Spanish