you are right.. returning a variable that holds the calculations is more readable. On the other hand, we need to save memory and to speed up the processing as much as possible, so let us consider these three points in our coding. the priority will be as follows:
1- space
2- speed
3- readability

waiting for your comments and suggestions