how do i figure out a months ending capital

Ending capital for the month = The month's beginning capital + Additional capital inflow for the month - additional capital outflow for the month
For example: if had $500 at the beginning of a month, you got a dividend of $100 during the month and also spend $50 on entertainment during the month, the ending capital would be 500 + 100 -50 = $550