# Advanced

In this section, you will find a step by step to use the formula aggregation concept.

# Advanced: Aggregation

## Objective

Create a formula on Ritchie that will **execute another formula inside it.**

You’ll find all the informations you need in the

how to group formulastutorial section.

The idea is to group at least 2 formulas inside another one:

(Level 1)`rit math sum numbers`

(TODO)`rit math multiply numbers`

Command suggestion:

`rit math calculate`

## Inputs

This formula needs to contain (at least) those three inputs parameters:

- Number one (
`RIT_UMBER_ONE`

). - Number two (
`RIT_NUMBER_TWO`

). - Operation (
`RIT_OPERATION`

).

## Step by step

To implement this formula, it will be necessary to follow the steps below:

**Premisse:** Creation of the ** rit math multiply numbers** formula (same as level 1).

- Extract all inputs parameters.
- Run the grouped formula according to the selected operation:
**multiply**should call`rit math multiply numbers`

**sum**should call`rit math sum numbers`

- Return the result on the terminal.

## Improvement suggestions

If you want to play a little more, here are some suggestions:

- Add more operations.
- Add the option to inform any quantity of numbers as inputs.

## Feedback

Was this page helpful?

Glad to hear it! Please tell us how we can improve.

Sorry to hear that. Please tell us how we can improve.

Last modified May 19, 2021: env: merge commit 211f737 from main (9b0453da)