This article gives you some reasons why calculating the database size using T-SQL and sys.database_files DMV is the more accurate way to know the size of the database. There are multiple ways to calculating the size of the database as exposed on the article.
Users have also documented this discrepancy between Portal and T-SQL on the Web. Please read this example.
Hope this helps.