dedicated function to calculate if latency is over
dedicated function to generate attachment files, correction of server for daily messages