added calcagenda function to transcribe