Fixed the bonus calculation issue, implemented time