reformat calculator file