Calculating the Chern-Simons invariant of bundles with flat connection