modified functionality for ending months with multi-users