add rate and remaining in home.php