Dear Wainaina,
Thank you for the message.
For SAM's Residential, Commercial, and Single Owner financial models, you can generate an Excel workbook that replicates SAM's financial model calculations by clicking the "Send to Excel with Equations" button on the Cash Flow tab of the Results page. (This feature is only available for Windows, not for Mac or Linux versions of SAM.)
Best regards,
Paul.