added type spec for calc_max_length_after_dot
added test for convert_units
added type spec for convert_units/7