Ab-initio Simulations of Transient Response Functions