<?php
/**
 * Created by PhpStorm.
 * User: matiss.bisofs
 * Date: 11/09/2017
 * Time: 10:28
 */

namespace Mtc\Modules\FormBuilder\Classes;


class FormBmi
{
    public static function calculate() {
        $arguments = func_get_args()[0];
        $height = $arguments['height'];
        $weight = $arguments['weight'];

        return number_format(($weight / ($height / 100)) / ($height / 100), 2);
    }

}