calculate_variable_profile function

Internal Function for Individual Variable Profiles