Calculate preset value from file.