automatic calculation added for tunfold a