Print total invested to console log