I need to reference a custom field I created in User Profile I used Drupal 7 computed fields to calculate weight loss. This is what I current have. Which works in a sense but only where the user inputs their initial weight and subtracts their current weight to track the total weight loss at the time of the input. But I need it to reference their initial weight from their user profile so that they only have to enter their current weight. One step process versus having to always enter the data that already exists. How can I achieve this? 

Current Code which works great but two fields have to be filled in. Needs to reference field in user profile.

$entity_field[0]['value'] = ($entity-&gt;field_iweight['und'][0]['value']) - ($entity-&gt;field_current_weight_['und'][0]['value']);
Use the $user object to access the logged in user.   

 global $user;
 $account = user_load($user-&gt;uid);


Now you can use $account-&gt;field_iweight['und'][0]['value'] (just an example) to access the weight or any other field from the user profile.

Updated code: 

&lt;?php
global $user;
$account = user_load($user-&gt;uid);
$entity_field[0]['value'] = $account-&gt;field_iweight['und'][0]['value'] - $entity-&gt;field_current_weight['und'][0]['value'];
?&gt;