Exact Heat Capacity Formula With Time