Automatic value calculator