Splitted getConvertedAmount function