Parallelogram a Number Now that we know how to properly square and triangle a number, we are going to learn how to parallelogram one.  To parallelogram a number, we first arrange it as a parallelogram by stacking it on top of itself a number of times equal to the number of digits it has, and adding spaces to make it a parallelogram.  So 123 would form:

   123
  123
 123


Now we take each horizontal and vertical number and add them, 123+123+123+1+12+123+23+3, which equals 531, which is the parallelogram of 123.  

Your Task:

Write a program or function that, when given a number as input, returns the parallelogram of the number.  

Input:

A non-negative integer, or a non-negative integer represented by a string.  

Output:

The parallelogram of the integer.  

Test Cases:

1234567 -&gt; 10288049
123     -&gt; 531
101     -&gt; 417
12      -&gt; 39


Scoring:

This is code-golf, lowest score in bytes wins!
MATL, 12 bytes
tnEXyPY+c!Us

Input is a string. Try it online!
Explanation
Consider input '123' as an example.
The code duplicates the input (t) and builds an identity matrix (Xy) of size twice the input length (nE):
1 0 0 0 0 0
0 1 0 0 0 0
0 0 1 0 0 0
0 0 0 1 0 0
0 0 0 0 1 0
0 0 0 0 0 1

then flips it upside down (P):
0 0 0 0 0 1
0 0 0 0 1 0
0 0 0 1 0 0
0 0 1 0 0 0
0 1 0 0 0 0
1 0 0 0 0 0

The input string, interpreted as ASCII codes of the digits, is equivalent to the numeric row vector
49 50 51

Full-size two-dimensional convolution (Y+) of the above vector and matrix gives
 0  0  0  0  0 49 50 51
 0  0  0  0 49 50 51  0
 0  0  0 49 50 51  0  0
 0  0 49 50 51  0  0  0
 0 49 50 51  0  0  0  0
49 50 51  0  0  0  0  0

Interpreting those numbers back as ASCII codes (c) gives the following char matrix, with char 0 represented as space:
     123
    123 
   123  
  123   
 123    
123

Transposition (!) transforms this into
     1
    12
   123
  123 
 123  
123   
23    
3     

Interpreting each row as a number (U) gives the numeric column vector
  1
 12
123
123
123
123
 23
  3

and summing it (s) gives the final result, 531.