Roman to Arabic Converter

Convert Roman numerals to Arabic numbers. Enter any Roman numeral and get the equivalent number.

I=1, V=5, X=10, L=50, C=100, D=500, M=1000\nSubtract when smaller before larger (IV=4)\nAdd otherwise (VI=6)
IV = 4, IX = 9, MCMXCIV = 1994