added calculate for conversion